package com.suke.czx.modules.wxadmin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.suke.czx.aop.Cacheable;
import com.suke.czx.aop.Cacheable.KeyMode;
import com.suke.czx.modules.wxadmin.dao.DkUserDao;
import com.suke.czx.modules.wxadmin.entity.DkUserEntity;
import com.suke.czx.modules.wxadmin.service.DkUserService;



@Service("dkUserService")
public class DkUserServiceImpl implements DkUserService {
	@Autowired
	private DkUserDao dkUserDao;
	
	@Override
	@Cacheable(expire=3600,keyMode=KeyMode.BASIC)
	public DkUserEntity queryObject(String openid){
		return dkUserDao.queryObject(openid);
	}
	
	@Override
	public List<DkUserEntity> queryList(Map<String, Object> map){
		return dkUserDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dkUserDao.queryTotal(map);
	}
	
	@Override
	public void save(DkUserEntity dkUser){
		dkUserDao.save(dkUser);
	}
	
	@Override
	public void update(DkUserEntity dkUser){
		dkUserDao.update(dkUser);
	}
	
	@Override
	public void delete(String openid){
		dkUserDao.delete(openid);
	}
	
	@Override
	public void deleteBatch(String[] openids){
		dkUserDao.deleteBatch(openids);
	}
	
}
